<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
        <div>10</div>
        <script>
            var odiv = document.querySelector('div')
            var time = setInterval(fn,1000)
            var time1 = setInterval(fn1,1000)
            console.log(time)
            console.log(time1)
            function fn(){
                if(odiv.innerHTML<= 0) {
                    return
                }else{
                    odiv.innerHTML--
                }
            } function fn1(){
                if(odiv.innerHTML<= 0) {
                    return
                }else{
                    odiv.innerHTML--
                }
            }
        </script>
</body>
</html>